<div id="page-content">
    <div id="page-content-wrapper">

        <div class="inner-page-title">
            <h2>Student Admission Form</h2>
            <span>Add Student Information</span>
        </div>
        <div id="add-users-data">
            <div class="column-content-box">
                <div class="content-box content-box-header ui-corner-all">
                    <form class="forms" id="admissionsform" method="post" action="/admin/admission/">
                        <div class="ui-state-default ui-corner-top ui-box-header">
                            <span class="ui-icon float-left ui-icon-notice"></span>
							Parent Information
                        </div>
                        <div class="content-box-wrapper">
							<?php if(!empty($this->messages)) {
								?>
								<div class="response-msg success ui-corner-all">
								
								<?php 
								foreach ($this->messages as $message)
								{
									?>
									<span><?php echo $message ?></span>
									<?php 
								}
								?>
									Admission details saved successfully
								</div>
								
								<?php 
							}?>
                            <fieldset>
                                <ul>
                                    <li>
                                        <label class="desc" for="p_firstname">Firstname</label>
                                        <div><input id="p_firstname" class="field text full" name="p_firstname" /></div>
                                    </li>
                                    <li>
                                        <label class="desc" for="p_lastname">Lastname</label>

                                        <div><input id="p_lastname" class="field text full" name="p_lastname" /></div>
                                    </li>
                                    <li>
                                        <label class="desc" for="p_username">Username</label>
                                        <div><input id="p_username" class="field text full" name="p_username" /></div>
                                    </li>
                                     <li>
                                        <label class="desc" for="p_email">Email</label>
                                        <div><input id="p_email" class="field text full" name="p_email" /></div>
                                    </li>
                                    <li>
                                        <label class="desc" for="p_mobileno">Mobile no:</label>

                                        <div><input id="p_mobileno" class="field text full" name="p_mobileno" type="text" /></div>
                                    </li>

                                   
                                </ul>
                            </fieldset>

                        </div>

                        <div class="ui-state-default ui-corner-top ui-box-header">
                            <span class="ui-icon float-left ui-icon-notice"></span>
							Student Information
                        </div>
                        <div class="content-box-wrapper">
                            <fieldset>
                                <ul>
                                    <li>
                                        <label class="desc" for="s_firstname">Firstname</label>
                                        <div><input id="s_firstname" class="field text full" name="s_firstname" /></div>
                                    </li>
                                    <li>
                                        <label class="desc" for="s_lastname">Lastname</label>

                                        <div><input id="s_lastname" class="field text full" name="s_lastname" /></div>
                                    </li>
                                    <li>
                                        <label class="desc" for="s_admission_no">Admission No</label>
                                        <div><input id="s_admission_no" class="field text full" name="s_admission_no" /></div>
                                    </li>
                                    <li>
                                        <label class="desc" for="s_class">Class</label>

                                        <div><select name="s_class" id="s_class" class="field select large">
										<?php for ($i = 0; $i <count($this->class_list); $i++) {?>
    									<option value="<?php echo $this->class_list[$i]['id'];?>">
											<?php echo $this->class_list[$i]['class_name'];?>
										</option>
										<?php }?>
										</select></div>
                                    </li>
                                    <li>
                                        <label class="desc" for="s_academic">For the academic year</label>

                                        <div><select name="s_academic" id="s_academic" class="field select large">
										<?php for ($i = 0; $i <count($this->academic_list); $i++) {?>
    									<option value="<?php echo $this->academic_list[$i]['id'];?>">
											<?php echo $this->academic_list[$i]['start_date'];?> to <?php echo $this->academic_list[$i]['end_date'];?>
										</option>
										<?php }?>
										</select></div>
                                    </li>
                                    <li>
                                        <label class="desc" for="s_rollno">Roll No</label>
                                        <div><input id="s_rollno" class="field text full" name="s_rollno" type="text" /></div>
                                    </li>
                                    <li>
                                        <label class="desc" for="s_address">Address</label>
                                        <div><textarea rows="2" cols="20" id="s_address" class="field full" name="s_address"></textarea></div>
                                    </li>
                                  
                                    <li>
                                        <input class="submit ui-state-default ui-corner-all float-right ui-button" type="submit" value="Submit"/>
                                    </li>
                                </ul>
                            </fieldset>

                        </div>

                    </form>


                </div>
            </div>
        </div>
    </div>
</div>